/**
 * @author
 * @version V1.0
 */
package com.hc.service.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hc.comm.mapper.Mapper;
import com.hc.comm.base.BaseServiceImpl;
import com.hc.service.dao.LoginInfoMapper;
import com.hc.service.model.LoginInfoModel;
import com.hc.service.service.ILoginInfoService;

/**
 *
 *	用户表的业务实现类
 *
 * @author
 */
@Service("loginInfoService")
public class LoginInfoServiceImpl extends BaseServiceImpl<LoginInfoModel>
        implements ILoginInfoService {


    @Resource(name = "loginInfoMapper")
    private LoginInfoMapper loginInfoMapper;

    @Override
    protected Mapper<LoginInfoModel> getMapper() {
        return loginInfoMapper;
    }

    @Override
    public LoginInfoModel getRecentLoginInfo(long userId) throws Exception {
        return loginInfoMapper.getRecentLoginInfo(userId);
    }
}
